
import BinaryOperators.EquationComponent;


public class Variable implements EquationComponent {
	
	private double _val;
	private String _name;
	
	
	public String getName() {
		return _name;
	}


	public Variable(String varName, double val){
		_name = varName;
		_val = val;
	}
	
	
	@Override
	public double Execute(double... args) {
		return _val;
	}

	public void updateValue(double newValue){
		_val = newValue;
	}

	
	
	
	
}
